set the fileName of cast "SS_LOGO.MOV" to gVideoPath & "S" & gPDL & "SS_LOGO.MOV"
set gNewSetIsHereF to 0
hInitConstants()
if gComputerTypeK = #WIN then
hSetWindowsColor()
else
hSetMacColor()
end if
set oVidCD to birth(script "Multi-CD Video Fetching")
hTestforCDin()
hPrepareAll()
end
on hPrepCursor
set gTrekCursor to the number of cast "trekcursFG"
end
on hPrepareAll
set gdescfield to the number of cast "F1"
hInitThumbholders()
hInitMode()
set gHotLinkList to [:]
set the itemDelimiter to RETURN
set gFirstSpeechF to 1
hAnnounce("Now establishing datalink")
put "Initializing indexes..." into field "status"
hInitMainIndex()
set oIndexSlider to birth(script "SliderManagerTall", 1, 4070, "mStartIndexToLine(oIndexScroller,mShowVal(oIndexSlider))", 30, 63, 67, 27, 63, 121, 1, 0)
set oTextSlider to birth(script "SliderManagerTall", 0, 1, "mScrollBarTextScroll(oTextScroller,mShowVal(oTextSlider))", 34, 213, 212, 31, 208, 378, 0, 0)
set Lchromax to mGetAnyMaxEntryNum(oIndexMediator, #CHRO)
set oHelpTextSlider to birth(script "SliderManagerTall", 0, 1, "mScrollBarTextScroll(oTextScroller,mShowVal(oHelpTextSlider))", 34, 208, 212, 31, 208, 383, 0, 0)
set oCreditSlider to birth(script "SliderManagerTall", 0, 1, "mScrollBarCreditScroll(oTextScroller,mShowVal(oCreditSlider))", 8, 44, 48, 5, 44, 220, 0, 0)
set oChartSlider to birth(script "SliderManagerTall", 0, 1, "mScrollBarChartScroll(oTextScroller,mShowVal(oChartSlider))", 8, 44, 48, 5, 44, 220, 0, 0)
set oHelpRoll to birth(script "HelpRoll Parent", HelpRects())
set oFile to birth(script "fileparent")
set gImInHelp to 0
set oPWin to birth(script "pWinScripts")
go("OpD2")
updateStage()
set x to the timer
repeat while the timer < (x + 20)
end repeat
hPrepStyles(gdescfield)
set the textFont of field "status" to gOurFontK
put "O.K." into field "status"
hInitInputParams()
set the textFont of field gInputField to gOurFontK
hAnnounce("Welcome to fed...databank")
go("OpE")
set glinktostagemsg to EMPTY
set gStageToLinkMsg to EMPTY
set gTopicLocList to [:]
set oWinKey to birth(script "WinkeyParent")
set gVoiceHandler to EMPTY
repeat with i = label("interfaceBuild") to label("interfaceBuildEnd")
go(i)
updateStage()
end repeat
go(label("ENCY") - 1)
hPrepMainInterface()
end
on hTestforCDin
set vTest to mAnyOMNICDIsMounted(oVidCD)
if vTest = 1 then
return 1
else
if vTest = -1 then
alert("Sorry, this updated version of the Omnipedia will not run with the original Omnipedia CD. Please mount your revised copy of the Omnipedia or an Episode Guide CD before launching the program.")
stopThismovie()
quit()
else
if hFileIsHere(the pathName & "OMNIonCD.PRF") = 0 then
alert("Please mount one of your Omnipedia CD's before launching the program.")
stopThismovie()
quit()
end if
end if
end if
end
on hInitConstants
if voidp(gComputerTypeK) then
if the machineType = 256 then
set gComputerTypeK to #WIN
else
set gComputerTypeK to #mac
end if
end if
if gComputerTypeK = #WIN then
set gDirectOrFolderK to "directory"
else
set gDirectOrFolderK to "folder"
end if
if gComputerTypeK = #WIN then
set gPDL to "\"
else
set gPDL to ":"
end if
set the exitLock to 1
hInitCurlyQ()
set gMemoryAlertFlag to 1
if gComputerTypeK = #WIN then
set gOurFontK to "TREKOMNI"
else
set gOurFontK to "TREKFAM"
end if
set gUpdateAttribFld to 510
if not (the name of cast gUpdateAttribFld starts "UPDATE") then
hputmsg("!!The UPDATE text field does not appear where it was expected. Updates may not work.")
beep(2)
end if
set gFirstYearK to 18
set gLastYearK to 24
set gEpisFTchunksizeK to 10
hSetStylingNeed(0)
hSetStylePermit(1)
set gModeNameLU to [#ENCY: "Encyclopedia", #FoundSet: "Search Results"]
hPrepBreakList()
hPrepHyperExceptions()
set the visible of sprite 22 to 1
end
on hPrepMainInterface
hSetGlobalCounter(1)
hSetLocalCounter(1)
set the itemDelimiter to "@"
put "Preparing interface parameters..." into field "Status"
hAnnounce("EngSignalBeep")
hInitSpritesNbuttons()
set the mouseDownScript to "hMouseEventSupervisor"
set gSavedMouseUpScript to the mouseUpScript
startTimer()
put "Preparing media lists..." into field "Status"
hAnnounce("OneHiBeep")
mInitScrollStuff(oTextScroller)
hSetupThumbs()
hInitMinaWLists()
mCheckHeader(oINTERfaceFind)
if not objectp(oASRObj) then
hShowSpeechStatus(#null)
else
hShowSpeechStatus(#INACTIVE)
end if
hInitTracker()
cursor([gTrekCursor, gTrekCursor + 1])
if gNewSetIsHereF then
hAnnounce("To Found Entries Mode")
end if
set gModeState to EMPTY
hSetMode(#ENCY)
hLIneUp()
hMatchEntryToIndexLine(1)
put "Ready." into field "Status"
hAnnounce("Ready 1")
end
on hShowTheUpdate pNum
hSwitchFTsearchscope(#ALL)
if pNum = 2 then
set lit to value(field gUpdateAttribFld)
if not objectp(lit) then
hearit(gNopeSND)
hReportStatus("This copy of the Omnipedia has not yet been updated.")